package com.mall.goods.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum Resp {

    SUCCESS("GOODS00000", "success"),
    FAIL("GOODS99999", "fail"),
    BAD_REQUEST("GOODS00400", "请求错误"),
    INVALID_PARAM("GOODS00401", "非法参数"),
    JSON_FORMAT_ERROR("GOODS00402", "JSON格式错误"),
    USER_SERVICE_UNAVAILABLE("GOODS00500", "用户服务暂时不可用"),



    UNAUTHORIZED("GOODS01000", "未授权"),



    STATEREMARK_NOT_EXIST("GOODS05002", "禁售原因不存在"),




    PERMISSION_DENIED("GOODS05001", "权限被拒绝");







    private final String code;
    private final String message;


}
